package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import javax.validation.constraints.NotBlank;
import java.util.List;

/**
 * 博客对象 blog
 *
 * @author ruoyi
 * @date 2022-07-31
 */
public class Blog extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    private Long id;

    /**
     * 博客类目表id
     */
    private Long blogTypeId;

    /**
     * 博客标题
     */
    private String title;

    /**
     * 博客简介
     */
    private String shortContent;

    /**
     * 显示顺序
     */
    private Integer orderNum;

    /**
     * 状态（0发布 1隐藏）
     */
    private String status;

    /**
     * =============================
     */

    /**
     * 博客标签
     */
    private List<BlogLabel> blogLabels;

    /**
     * 博客标签id
     */
    private List<Long> labelIds;

    /**
     * 博客内容
     */
    private String blogContent;

    /**
     * 博客评论数量
     */
    private Integer blogCommentCount;

    public List<Long> getLabelIds() {
        return labelIds;
    }

    public void setLabelIds(List<Long> labelIds) {
        this.labelIds = labelIds;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setBlogTypeId(Long blogTypeId) {
        this.blogTypeId = blogTypeId;
    }

    public Long getBlogTypeId() {
        return blogTypeId;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getTitle() {
        return title;
    }

    public void setShortContent(String shortContent) {
        this.shortContent = shortContent;
    }

    public String getShortContent() {
        return shortContent;
    }

    public void setOrderNum(Integer orderNum) {
        this.orderNum = orderNum;
    }

    public Integer getOrderNum() {
        return orderNum;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getStatus() {
        return status;
    }

    public List<BlogLabel> getBlogLabels() {
        return blogLabels;
    }

    public void setBlogLabels(List<BlogLabel> blogLabels) {
        this.blogLabels = blogLabels;
    }

    public String getBlogContent() {
        return blogContent;
    }

    public void setBlogContent(String blogContent) {
        this.blogContent = blogContent;
    }

    public Integer getBlogCommentCount() {
        return blogCommentCount;
    }

    public void setBlogCommentCount(Integer blogCommentCount) {
        this.blogCommentCount = blogCommentCount;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("blogTypeId", getBlogTypeId())
                .append("title", getTitle())
                .append("shortContent", getShortContent())
                .append("orderNum", getOrderNum())
                .append("status", getStatus())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .toString();
    }
}
